﻿namespace Sidvall.WorkItemManager.UI.Entities
{
    public sealed partial class WorkItemLog
    {
        #region Public Members

        #region ResultTypeName

        public string ResultTypeName
        {
            get
            {
                return this.WorkItemResultId.ToString();
            }
        }

        #endregion
        #region WorkItemName

        private string _WorkItemName;
        public string WorkItemName
        {
            get
            {
                return _WorkItemName;
            }
            set
            {
                _WorkItemName = value;
                OnPropertyChanged(nameof(WorkItemName), true, false);
            }
        }

        #endregion

        #region OnAfterPropertyChanged

        partial void OnAfterWorkItemResultIdPropertyChanged()
        {
            OnPropertyChanged(nameof(ResultTypeName), true, false);
        }

        #endregion
        #region ToString

        public override string ToString()
        {
            return this.ResultTypeName + ": " + this.ResultMessage;
        }

        #endregion

        #endregion
    }
}